        <script type="text/javascript">
            //alert("asdasdasdasd");
               jQuery.noConflict();
                (function($){
                $(function(){
                $("#bt_excluir").click(function(){
                    cont = 0;
                    nomes = "";
                    //alert("teste");
                    $("input[type=checkbox]").each(function(){
                        //alert($(this).attr("name"));
                        if( $(this).attr("checked") == true ){
                            nomes += $(this).parent().next().children().html() + "\n"
                            cont++;
                        }
                    })
                    if(cont > 0){
                        resp = confirm("Você tem certeza que deseja excluir o(s) fornecedor(es):\n" + nomes)
                        if(!resp)
                            return false;
                        else
                            return true;
                    }
                    else{
                        alert("Você precisa selecionar ao menos um fornecedor");
                        return false;
                    }
                })
                })
            })(jQuery);
        </script>

<h1 class="compras_titulo_pagina"> <?php echo $titulo; ?></h1>
<div class="compras_subtitulo"><?php echo $mensagem ?></div>

<div class="compras_formulario_small">
    <form action="<?php echo site_url("admin/fornecedor/gerar_link_cadastro_input"); ?>"  method="post">
        <label class="compras_formulario_label">Enviar link de cadastro :</label>
        <input name="email" type="text" onfocus="if(this.value == 'E-mail') {this.value = '';}"
               onblur="if(this.value == '') {this.value = 'E-mail';} " value="E-mail">
        <br clear="left">
        <div align="center">
        <input type="image" name="enviar"
           onmouseover="this.src ='<?php echo site_url('images/botoes/enviar_on.png'); ?>'"
           onmouseout="this.src ='<?php echo site_url('images/botoes/enviar.png'); ?>'"
           src="<?php echo site_url()."images/botoes/enviar.png";?>"
           value ="enviar"
        />
        </div>
    </form>
</div>

<form action="<?php echo site_url("admin/fornecedor/gerenciar"); ?>" id="f_listagem" method="post">

    <table class="tabelacompras" cellpadding="0" cellspacing="0">
        <tr>
            <th width="30">&nbsp;</th>
            <th width="350">Raz&atilde;o Social</th>
            <th width="200">Nome Admin</th>
            <th width="100">Produtos</th>
            <th width="100">Pedidos</th>
            <th width="250"><center>Autorizado</center></th>
        </tr>
        <?php echo $lista; ?>

    </table>

    <table width="535" cellspacing="0" border="0">
        <tr>
            <td width="85">
                <input type="image" name="autorizar"
                   onmouseover="this.src ='<?php echo site_url('images/botoes/autorizar_on.png'); ?>'"
                   onmouseout="this.src ='<?php echo site_url('images/botoes/autorizar.png'); ?>'"
                   src="<?php echo site_url()."images/botoes/autorizar.png";?>"
                   value ="Autorizar"
                />
            </td>
            <td width="85">
                <input type="image" name="desautorizar"
                   onmouseover="this.src ='<?php echo site_url('images/botoes/desautorizar_on.png'); ?>'"
                   onmouseout="this.src ='<?php echo site_url('images/botoes/desautorizar.png'); ?>'"
                   src="<?php echo site_url()."images/botoes/desautorizar.png";?>"
                   value ="Desautorizar"
                />
            </td>
            <td width="85">
            <input type="image" name="deletar"
               onmouseover="this.src ='<?php echo site_url('images/botoes/deletar_on.png'); ?>'"
               onmouseout="this.src ='<?php echo site_url('images/botoes/deletar.png'); ?>'"
               src="<?php echo site_url()."images/botoes/deletar.png";?>"
               value ="Deletar"
               id ="bt_excluir"
            />
            </td>

            <td align="right">
                 <?php $img=array('src'=>"images/botoes/novo_fornecedor.png",
                'onMouseOver'=>"this.src ='".site_url('images/botoes/novo_fornecedor_on.png')."'",
                'onMouseOut'=>"this.src ='".site_url('images/botoes/novo_fornecedor.png')."'",
                'style'=>"border:0px;");
                echo anchor("admin/fornecedor/cadastrar", img($img)); ?>
            </td>
        </tr>
    </table>
</form>

